home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
sebfi101.zip
/
SEBFI.DOC
< prev
next >
Wrap
Text File
|
1991-10-15
|
12KB
|
377 lines
Scanlon Enterprises Batch File Interpreter
S E B F I
Ver. 1.01
(C) 1989-1991
(All rights reserved)
B A T C H F I L E I N T E R P R E T E R
U S E R M A N U A L
The shareware concept has made it possible for you to obtain
extremely powerful software at a price you can afford, and it
gives you the opportunity to try the software before you
register.
Shareware is kept alive by YOUR support.
Evaluate the program for 30-days and give copies to your friends
for evaluation. If, after the 30 days, you continue to use the
program, then register it by sending us the registration form
included in this file, plus the suggested registration fee.
This utility has some drawbacks to running a batch file using the
Dos COMMAND.COM batch file handler.
One, you will not be able to use errorlevels when executing built
in Dos commands such as ECHO, SET, FOR, etc... or when executing
externalfunctions such as our SEBFU utilities. Two, the use of
FOR (the Dos built in function) can not be used to execute our
built in functions (more on this later). Three, the DOS GOTO
command will not function to loop to another part of the batch
file, instead, you must use our built in function GO (short for
GOTO). All other DOS functions seem to function properly. SEBFI
limits batch file size to 16K, which is a fairly large one, since
rarely do batch files exceed 1K.
Why use this utility ? Well, we can guarantee at least a four
fold increase in execution of batch files. This is accomplished
by placing the entire batch file (limited to 16K) into memory at
once. Since we won't have to read each line from a disk, or
execute commands from a disk (except the external ones), we get a
very significant increase in execution speed.
How do you use these utilities ?
All of the regular Dos built in commands are available, these are
BREAK CD (CHDIR) CLS COPY DATE DEL
DIR ECHO EXIT FOR GOTO IF
PATH PAUSE PROMPT REM REN SET
TIME TYPE VER VERIFY VOL
In addition to these Dos built in commands, we offer the
following built in ones :
CL Same as our CLR utility (SEBFU utility)
CM Set or check video mode (uses built in errorlevel)
CT Toggle cursor on or off
DM Set built in errorlevel to day of month
DV Sets the built in errorlevel equal to the drive number
DW Set built in errorlevel to day of week
FF Send form feed to PRN device
GA Set built in errorlevel to alpha keystroke
GN Set built in errorlevel to numeric keystroke
GO Built in replacement for GOTO
HR Set built in errorlevel equal to hour of day
IE Replaces Dos IF ERRORLEVEL function (built in errorlev)
LC Position cursor
MN Set built in errorlevel equal to current minute
WR Save as our WRITE command (SEBFU utility)
YR Set built in errorlevel equal to the current year
YN Set built in errorlevel in response to yes/no question
SEBFI INTERNAL COMMAND USAGE
CL sr sc er ec bc fc
(user must supply the first 4 values)
Where : 'sr' = start row of window
'sc' = start column of window
'er' = ending row of window
'ec' = ending column of window
'bc' = background color
'fc' = foreground color
Description: A window will be cleared, using the selected
windowing area and colors. If the colors are NOT specified, the
the current screen colors are used.
CM option val
Where : 'option' is 'G' for get mode, and returns an errorlevel,
using the IE function equal to the current video mode.
'option' is 'S' for set mode to the following 'val',
which is a decimal value. The 'S' should be immediately followed
by the value, IE... S5 will set the mode to 5.
Description: Sets or gets the video mode. When getting the mode
using option 'G', the mode may be retrieved only by using the
built in function 'IE'. When setting the mode, please follow the
guidelines as stated above.
CT
Description: Toggles the cursor between on and off. This function
will toggle the cursor to it's opposite state, that is, if it is
on, then it will be turned off.
DM
Description: Returns an error level equal to the day of the
month, which may be tested using the IE function
DV
Description: Returns an errorlevel equal to the drive number,
where 1=A and 26=Z. Use the IE function to test the value.
DW
Description: Returns an errorlevel equal to the day of the week.
Use the IE function to test the value.
SEBFI INTERNAL COMMAND USAGE {continued}
FF
Description: Sends a form feed to the printer LPT1
GA
Description: Gets an alpha keystroke, returning an errorlevel
equal to the alpha key, where 1=A and 26=Z. GA ignores the case
of the alpha key pressed, so that 'a' also returns a 1 and 'z'
also returns a 26. Use the IE function to test this errorlevel.
GN
Description: Gets a numeric keystroke, returning an errorlevel
equal to the numeric key, where 0='0' and 9='9'. Use the IE
function to test this errorlevel.
GO label
Where : 'label' is any valid label, preceded by a colon
Description: Branches to the the label 'label'
HR
Description: Returns an errorlevel equal to the hour of the day,
Use the IE function to test this errorlevel.
IE val command
Where : 'val' is the value of the errorlevel to test for, in
decimal, IE... if you want to test for errorlevel 9, then enter
'9' as the 'val'.
'command' is any valid batch command recognized by this
program (see above).
Description: This is a very powerful function, and performs any
other function based upon the result of the test being true.
Thus, if the user tested for errorlevel=9 (IE 9) and the result
is positive (true) then the 'command' would be performed.
SEBFI INTERNAL COMMAND USAGE {continued}
LC r c
Where : 'r' is the row
'c' is the column
Description: Positions the cursor to the value (in decimal) of
'r' and 'c'. Thus, LC 5 5 would position the cursor on line 5,
column 5.
MN Sets the built in errorlevel (recovered by using function IE),
to the value of the current minute. IE... 10:45 sets the
errorlevel to 45.
WR /LcRrXNCbf,message
Where : '/' Specifies start of the switches
'Lc' Sets the column to 'c'
'Rr' Sets the row to 'r'
'X' Centers string on line (must use either this or L
not both)
'N' Cursor is positioned to end of string 'message'
'Cb f' Sets the color, where 'b' is the background and
'f' is the foreground. If NOT specified, the WR uses the current
colors.
Description: Displays text using color, a specified line